<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>商品详情 - 二手平台</title>
    <link rel="stylesheet" href="css/style.css">
    <style>
        body {
            font-family: "Segoe UI", sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 20px;
        }
        .product-container {
            max-width: 800px;
            margin: auto;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            padding: 20px;
        }
        .product-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .product-image {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 20px;
        }
        .product-price {
            font-size: 24px;
            color: #e91e63;
            margin-bottom: 15px;
        }
        .product-description {
            font-size: 16px;
            line-height: 1.6;
            color: #333;
        }
        .buy-button {
            margin-top: 20px;
            display: inline-block;
            padding: 10px 20px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
        }
        .buy-button:hover {
            background: #218838;
        }
    </style>
</head>
<body>
<nav>
    <a href="/index.html">首页</a>
    <a href="/products.html">浏览商品</a>
    <a href="/publish.html">发布商品</a>
    <a href="/dashboard.html">我的商品</a>
    <a href="#" id="logoutBtn">退出登录</a>
</nav>
<div class="container" id="productDetail"></div>
<script src="js/api.js"></script>
<script src="js/product.js"></script>
<div class="product-container">
    <div class="product-title">Apple iPhone 15 Pro Max</div>
    <img src="images/pg3.png" alt="商品图片" class="product-image">
    <div class="product-price">￥9,999.00</div>
    <div class="product-description">
        iPhone 15 Pro Max 采用钛金属外壳，搭载 A17 Pro 芯片，拥有全新的潜望式长焦镜头，带来卓越性能与拍照体验。<br><br>
        产品特点：
        <ul>
            <li>6.7 英寸 OLED 显示屏</li>
            <li>1TB 存储，支持 ProRes 视频拍摄</li>
            <li>USB-C 接口，支持快速传输</li>
        </ul>
    </div>
    <a class="buy-button" href="#">立即购买</a>
</div>
</body>
</html>
